<?php
/**
 * 后台管理菜单项
 *
 * @version        $Id: inc_menu.php 1 10:32 2010年7月21日Z tianya $
 * @package        DedeCMS.Administrator
 * @copyright      Copyright (c) 2007 - 2010, DesDev, Inc.
 * @license        http://help.dedecms.com/usersguide/license.html
 * @link           http://www.dedecms.com
 */
require_once(dirname(__FILE__)."/../config.php");

//载入可发布频道
$addset = '';

//检测可用的内容模型
if($cfg_admin_channel = 'array' && count($admin_catalogs) > 0)
{
    $admin_catalog = join(',', $admin_catalogs);
    $dsql->SetQuery(" SELECT channeltype FROM `#@__arctype` WHERE id IN({$admin_catalog}) GROUP BY channeltype ");
}
else
{
    $dsql->SetQuery(" SELECT channeltype FROM `#@__arctype` GROUP BY channeltype ");
}
$dsql->Execute();
$candoChannel = '';
while($row = $dsql->GetObject())
{
    $candoChannel .= ($candoChannel=='' ? $row->channeltype : ','.$row->channeltype);
}
if(empty($candoChannel)) $candoChannel = 1;
$dsql->SetQuery("SELECT id,typename,addcon,mancon FROM `#@__channeltype` WHERE id IN({$candoChannel}) AND id<>-1 AND isshow=1 ORDER BY id ASC");
$dsql->Execute();
while($row = $dsql->GetObject())
{
    $addset .= "  <m:item name='{$row->typename}' ischannel='1' link='{$row->mancon}?channelid={$row->id}' linkadd='{$row->addcon}?channelid={$row->id}' channelid='{$row->id}' rank='' target='main' />\r\n";
}
//////////////////////////

$adminMenu1 = $adminMenu2 = '';
if($cuserLogin->getUserType() >= 10)
{
    $adminMenu1 = "<m:top item='10_' name='频道模型' display='block' rank='t_List,t_AccList,c_List,temp_One'>
  <m:item name='内容模型管理' link='mychannel_main.php' rank='c_List' target='main' />
  <m:item name='单页文档管理' link='templets_one.php' rank='temp_One' target='main'/>
  <m:item name='联动类别管理' link='stepselect_main.php' rank='c_Stepseclect' target='main' />
  <m:item name='自由列表管理' link='freelist_main.php' rank='c_List' target='main' />
  <m:item name='自定义表单' link='diy_main.php' rank='c_List' target='main' />
</m:top>
";
$adminMenu2 = "<m:top item='7_' name='模板管理' display='none' rank='temp_One,temp_Other,temp_MyTag,temp_test,temp_All'>
  <m:item name='默认模板管理' link='templets_main.php' rank='temp_All' target='main'/>
  <m:item name='标签源码管理' link='templets_tagsource.php' rank='temp_All' target='main'/>
  <m:item name='自定义宏标记' link='mytag_main.php' rank='temp_MyTag' target='main'/>
  <m:item name='智能标记向导' link='mytag_tag_guide.php' rank='temp_Other' target='main'/>
  <m:item name='全局标记测试' link='tag_test.php' rank='temp_Test' target='main'/>
</m:top>

<m:top item='10_' name='系统设置' display='none' rank='sys_User,sys_Group,sys_Edit,sys_Log,sys_Data'>
  <m:item name='系统基本参数' link='sys_info.php' rank='sys_Edit' target='main' />
  <m:item name='系统用户管理' link='sys_admin_user.php' rank='sys_User' target='main' />
  <m:item name='用户组设定' link='sys_group.php' rank='sys_Group' target='main' />
  <m:item name='服务器分布/远程' link='sys_multiserv.php' rank='sys_Group' target='main' />
  <m:item name='系统日志管理' link='log_list.php' rank='sys_Log' target='main' />
  <m:item name='验证安全设置' link='sys_safe.php' rank='sys_verify' target='main' />
  <m:item name='图片水印设置' link='sys_info_mark.php' rank='sys_Edit' target='main' />
  <m:item name='自定义文档属性' link='content_att.php' rank='sys_Att' target='main' />
  <m:item name='软件频道设置' link='soft_config.php' rank='sys_SoftConfig' target='main' />
  <m:item name='防采集串混淆' link='article_string_mix.php' rank='sys_StringMix' target='main' />
  <m:item name='随机模板设置' link='article_template_rand.php' rank='sys_StringMix' target='main' />
  <m:item name='计划任务管理' link='sys_task.php' rank='sys_Task' target='main' />
  <m:item name='数据库备份/还原' link='sys_data.php' rank='sys_Data' target='main' />
  <m:item name='SQL命令行工具' link='sys_sql_query.php' rank='sys_Data' target='main' />
  <m:item name='文件校验[S]' link='sys_verifies.php' rank='sys_verify' target='main' />
  <m:item name='病毒扫描[S]' link='sys_safetest.php' rank='sys_verify' target='main' />
  <m:item name='系统错误修复[S]' link='sys_repair.php' rank='sys_verify' target='main' />
</m:top>

    ";
}
$remoteMenu = ($cfg_remote_site=='Y')? "<m:item name='远程服务器同步' link='makeremote_all.php' rank='sys_ArcBatch' target='main' />" : "";
$menusMain = "
-----------------------------------------------
<m:top item='1_' name='1 机构概况' display='block'>
  <m:item name='机构设置及人员分工' link='project_main.php'  target='main' />
  <m:item name='办事指南' link='content_list.php?channelid=1&cid=123'  target='main' />
</m:top>

<m:top item='1_' name='2 政策法规' display='block'>
  <m:item name='国家政策' link='content_list.php?channelid=1&cid=19'  target='main' />
  <m:item name='省内政策' link='content_list.php?channelid=1&cid=33'  target='main' />
  <m:item name='校内政策' link='content_list.php?channelid=1&cid=34'  target='main' />
</m:top>

<m:top item='1_' name='3 项目申报' display='block'>
  <m:item name='项目申报' link='content_list.php?channelid=1&cid=41'  target='main' />
</m:top>

<m:top item='1_' name='4 人才团队' display='block'>
  <m:item name='人才-国家杰出青年基金获得者' link='content_list.php?channelid=1&cid=96'  target='main' />
  <m:item name='人才-科技部中青年科技创新领军人才' link='content_list.php?channelid=1&cid=97'  target='main' />
  <m:item name='人才-教育部长江学者特聘教授' link='content_list.php?channelid=1&cid=98'  target='main' />
  <m:item name='人才-教育部新世纪优秀人才' link='content_list.php?channelid=1&cid=99'  target='main' />
  <m:item name='人才-山西省高等学校中青年拔尖创新人才' link='content_list.php?channelid=1&cid=100'  target='main' />
  <m:item name='人才-山西省青年拔尖人才' link='content_list.php?channelid=1&cid=101'  target='main' />
  <m:item name='人才-山西省高等学校优秀青年学术带头人' link='content_list.php?channelid=1&cid=102'  target='main' />
  <m:item name='团队-科技部重点领域创新团队' link='content_list.php?channelid=1&cid=103'  target='main' />
  <m:item name='团队-教育部创新团队' link='content_list.php?channelid=1&cid=104'  target='main' />
  <m:item name='团队-山西省科技创新团队' link='content_list.php?channelid=1&cid=105'  target='main' />
  <m:item name='团队-山西省高等学校“优秀创新团队”' link='content_list.php?channelid=1&cid=106'  target='main' />
</m:top>

<m:top item='1_' name='5 平台基地' display='block'>
  <m:item name='重点实验室' link='content_list.php?channelid=1&cid=52'  target='main' />
  <m:item name='协同创新中心' link='content_list.php?channelid=1&cid=107'  target='main' />
  <m:item name='工程技术研究中心' link='content_list.php?channelid=1&cid=53'  target='main' />
  <m:item name='研究基地' link='content_list.php?channelid=1&cid=54'  target='main' />
  <m:item name='直属研究所' link='content_list.php?channelid=1&cid=55'  target='main' />
</m:top>

<m:top item='1_' name='6 科技成果' display='block'>
  <m:item name='奖励申报' link='content_list.php?channelid=1&cid=17'  target='main' />
  <m:item name='成果鉴定' link='content_list.php?channelid=1&cid=66'  target='main' />
  <m:item name='专利与产权' link='content_list.php?channelid=1&cid=82'  target='main' />
  <m:item name='成果目录' link='content_list.php?channelid=1&cid=67'  target='main' />
</m:top>


<m:top item='1_' name='7 社会需求' display='block'>
  <m:item name='社会需求' link='content_list.php?channelid=1&cid=39'  target='main' />
</m:top>

<m:top item='1_' name='8 大学生创业园' display='block'>
  <m:item name='大学生创业园' link='content_list.php?channelid=1&cid=94'  target='main' />
</m:top>

<m:top item='1_' name='9 下载专区' display='block'>
  <m:item name='申报与结题' link='content_list.php?channelid=1&cid=79'  target='main' />
  <m:item name='合同与投标' link='content_list.php?channelid=1&cid=80'  target='main' />
  <m:item name='鉴定与奖励' link='content_list.php?channelid=1&cid=81'  target='main' />
  <m:item name='转化与推广' link='content_list.php?channelid=1&cid=83'  target='main' />
  <m:item name='平台与团队' link='content_list.php?channelid=1&cid=84'  target='main' />
  <m:item name='其他' link='content_list.php?channelid=1&cid=32'  target='main' />
</m:top>


<m:top item='1_' name='首页-科技处相关' display='block'>
  <m:item name='图片新闻' link='content_list.php?channelid=1&cid=116'  target='main' />
  <m:item name='通知通告' link='content_list.php?channelid=1&cid=119'  target='main' />
  <m:item name='产学研合作' link='content_list.php?channelid=1&cid=26'  target='main' />
  <m:item name='学术报告' link='content_list.php?channelid=1&cid=114'  target='main' />
  <m:item name='成果推介' link='content_list.php?channelid=1&cid=115'  target='main' />
  
  <m:item name='科研动态' link='content_list.php?channelid=1&cid=124'  target='main' />
  <m:item name='科技月讯-2016年' link='content_list.php?channelid=1&cid=110'  target='main' />
  <m:item name='科技月讯-2015年' link='content_list.php?channelid=1&cid=111'  target='main' />
  <m:item name='科技月讯-2014年' link='content_list.php?channelid=1&cid=112'  target='main' />
  <m:item name='科技月讯-2013年' link='content_list.php?channelid=1&cid=113'  target='main' />
  
  <m:item name='联系我们' link='catalog_edit.php?id=116'  target='main' />
</m:top>








<m:top item='10_' name='常用操作' display='block'>
  <m:item name='网站栏目管理' link='catalog_main.php' ischannel='1' addalt='创建栏目' linkadd='catalog_add.php?listtype=all' rank='t_List,t_AccList' target='main' />
  <m:item name='所有档案列表' link='content_list.php' rank='a_List,a_AccList' target='main' />
  <m:item name='等审核的档案' link='content_list.php?arcrank=-1' rank='a_Check,a_AccCheck' target='main' />
  <m:item name='我发布的文档' link='content_list.php?mid=".$cuserLogin->getUserID()."' rank='a_List,a_AccList,a_MyList' target='main' />
  <m:item name='评论管理' link='feedback_main.php' rank='sys_Feedback' target='main' />
  <m:item name='内容回收站' link='recycling.php' ischannel='1' addalt='清空回收站' addico='images/gtk-del.png' linkadd='archives_do.php?dopost=clear&aid=no&recycle=1' rank='a_List,a_AccList,a_MyList' target='main' />
</m:top>

<m:top item='10_' name='内容管理' display='block'>
  $addset
  <m:item name='专题管理' ischannel='1' link='content_s_list.php' linkadd='spec_add.php' channelid='-1' rank='spec_New' target='main' />
</m:top>

<m:top item='10_' name='附件管理' display='none' rank='sys_Upload,sys_MyUpload,plus_文件管理器'>
  <m:item name='上传新文件' link='media_add.php' rank='' target='main' />
  <m:item name='附件数据管理' link='media_main.php' rank='sys_Upload,sys_MyUpload' target='main' />
  <m:item name='文件式管理器' link='media_main.php?dopost=filemanager' rank='plus_文件管理器' target='main' />
</m:top>

$adminMenu1

<m:top item='3_' name='采集管理' display='none' rank='co_NewRule,co_ListNote,co_ViewNote,co_Switch,co_GetOut'>
  <m:item name='采集节点管理' link='co_main.php' rank='co_ListNote' target='main' />
  <m:item name='临时内容管理' link='co_url.php' rank='co_ViewNote' target='main' />
  <m:item name='导入采集规则' link='co_get_corule.php' rank='co_GetOut' target='main'/>
  <m:item name='监控采集模式' link='co_gather_start.php' rank='co_GetOut' target='main'/>
  <m:item name='采集未下载内容' link='co_do.php?dopost=coall' rank='co_GetOut' target='main'/>
</m:top>

<m:top item='10_3_3' name='批量维护' display='block'>
  <m:item name='更新系统缓存' link='sys_cache_up.php' rank='sys_ArcBatch' target='main' />
  <m:item name='文档批量维护' link='content_batch_up.php' rank='sys_ArcBatch' target='main' />
  <m:item name='搜索关键词维护' link='search_keywords_main.php' rank='sys_Keyword' target='main' />
  <m:item name='文档关键词维护' link='article_keywords_main.php' rank='sys_Keyword' target='main' />
  <m:item name='重复文档检测' link='article_test_same.php' rank='sys_ArcBatch' target='main' />
  <m:item name='自动摘要|分页' link='article_description_main.php' rank='sys_Keyword' target='main' />
  <m:item name='TAG标签管理' link='tags_main.php' rank='sys_Keyword' target='main' />
  <m:item name='数据库内容替换' link='sys_data_replace.php' rank='sys_ArcBatch' target='main' />
</m:top>

<m:top item='5_' name='自动任务' notshowall='1'  display='block' rank='sys_MakeHtml'>
  <m:item name='一键更新网站' link='makehtml_all.php' rank='sys_MakeHtml' target='main' />
  <m:item name='更新系统缓存' link='sys_cache_up.php' rank='sys_ArcBatch' target='main' />
  <m:item name='更新主页HTML' link='makehtml_homepage.php' rank='sys_MakeHtml' target='main' />
  <m:item name='更新栏目HTML' link='makehtml_list.php' rank='sys_MakeHtml' target='main' />
  <m:item name='更新文档HTML' link='makehtml_archives.php' rank='sys_MakeHtml' target='main' />
</m:top>

<m:top item='5_' name='基本功能' notshowall='1'  display='block' rank='sys_MakeHtml'>
  <m:item name='友情链接管理' link='friendlink_main.php' rank='sys_MakeHtml' target='main' />
  <m:item name='系统基本参数' link='sys_info.php' rank='sys_Edit' target='main' />
   <m:item name='系统用户管理' link='sys_admin_user.php' rank='sys_User' target='main' />
  <m:item name='用户组设定' link='sys_group.php' rank='sys_Group' target='main' />
  <m:item name='数据库备份/还原' link='sys_data.php' rank='sys_Data' target='main' />
</m:top>

$adminMenu2


-----------------------------------------------
";
